﻿<%@ Control Language="C#" Inherits="PlexBB.Controls.Admin.ModuleManagement.AcpModulesList" %>
<a name="maincontent"></a>
<h1>
    <asp:Literal runat="server" Text="<%$ Lang:ACP_MODULE_MANAGEMENT%>" /></h1>
<p>
    <asp:Literal runat="server" Text="<%$ Lang:ACP_MODULE_MANAGEMENT_EXPLAIN%>" /></p>
<div class="errorbox" runat="server" id="cErrorBox">
    <h3>
        <asp:Literal runat="server" Text="<%$ Lang:WARNING%>" /></h3>
    <p>
        <asp:Literal runat="server" ID="tError" /></p>
</div>
<table cellspacing="1">
    <tbody>
        <tr>
            <td class="row3">
                <asp:Repeater runat="server" ID="rNavigation">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hNavigate" />
                        -&gt;
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:Label runat="server" ID="lCurrentModule" />
                    </FooterTemplate>
                </asp:Repeater>
                <asp:PlaceHolder runat="server" ID="cModuleActions">[<asp:HyperLink runat="server"
                    ID="hEditModule" Text="<%$ Lang:EDIT%>" />
                    |
                    <asp:LinkButton runat="server" ID="bDeleteModule" Text="<%$ Lang:DELETE%>" />
                    |
                    <asp:LinkButton runat="server" ID="bDisableModule" Text="<%$ Lang:DISABLE%>" />
                    <asp:LinkButton runat="server" ID="bEnableModule" Text="<%$ Lang:ENABLE%>" />]</asp:PlaceHolder>
            </td>
        </tr>
    </tbody>
</table>
<asp:Repeater runat="server" ID="rModules">
    <HeaderTemplate>
        <table cellspacing="1">
            <col class="row1" />
            <col class="row1" />
            <col class="row2" />
            <col class="row2" />
            <tbody>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td style="width: 5%; text-align: center;">
                <asp:Image runat="server" ID="iModuleImage" />
            </td>
            <td>
                <asp:HyperLink runat="server" ID="hModuleTitle" />
                <asp:Label runat="server" ID="cHiddenModule" CssClass="small" Text="<%$ Lang:HIDDEN_MODULE:[{0}]%>" />
            </td>
            <td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;">
                &nbsp;<asp:LinkButton runat="server" ID="bDisable" Text="<%$ Lang:DISABLE%>" /><asp:LinkButton
                    runat="server" ID="bEnable" Text="<%$ Lang:ENABLE%>" />&nbsp;
            </td>
            <td style="width: 90px; white-space: nowrap; text-align: right; vertical-align: middle;">
                <asp:ImageButton runat="server" ID="bUp" ImageUrl="<%$ Theme:Images/IconUp.gif%>"
                    AlternateText="<%$ Lang:MOVE_UP%>" CssClass="image" />
                <asp:Image runat="server" ID="cUpDisabled" ImageUrl="<%$ Theme:Images/IconUpDisabled.gif%>"
                    AlternateText="<%$ Lang:MOVE_UP%>" />
                <asp:ImageButton runat="server" ID="bDown" ImageUrl="<%$ Theme:Images/IconDown.gif%>"
                    AlternateText="<%$ Lang:MOVE_DOWN%>" CssClass="image" />
                <asp:Image runat="server" ID="cDownDisabled" ImageUrl="<%$ Theme:Images/IconDownDisabled.gif%>"
                    AlternateText="<%$ Lang:MOVE_DOWN%>" CssClass="image" />
                <asp:HyperLink runat="server" ID="hEdit"><asp:Image runat="server" ImageUrl="<%$ Theme:Images/IconEdit.gif%>" AlternateText="<%$ Lang:EDIT%>" CssClass=image  /></asp:HyperLink>
                <%--                <asp:ImageButton runat="server" ID="bEdit" ImageUrl="<%$ Theme:Images/ICON_EDIT%>" AlternateText="<%$ Lang:EDIT%>"
                    CssClass="image" />--%>
                <asp:ImageButton runat="server" ID="bDelete" ImageUrl="<%$ Theme:Images/IconDelete.gif%>"
                    AlternateText="<%$ Lang:DELETE%>" CssClass="image" />
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </tbody> </table></FooterTemplate>
</asp:Repeater>
<%--<!-- IF .modules -->
		<table cellspacing="1">
			<col class="row1" /><col class="row1" /><col class="row2" /><col class="row2" />
		<tbody>
		<!-- BEGIN modules -->
			<tr>
				<td style="width: 5%; text-align: center;">{modules.MODULE_IMAGE}</td>
				<td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[<%= L_HIDDEN_MODULE %>]</span><!-- ENDIF --></td>
				<td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;">&nbsp;<!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}"><%= L_DISABLE %></a><!-- ELSE --><a href="{modules.U_ENABLE}"><%= L_ENABLE %></a><!-- ENDIF -->&nbsp;</td>
				<td style="width:90px; white-space: nowrap; text-align: right; vertical-align: middle;">
					<!-- IF modules.S_FIRST_ROW && not modules.S_LAST_ROW -->
						{ICON_MOVE_UP_DISABLED}
						<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF not modules.S_FIRST_ROW && not modules.S_LAST_ROW-->
						<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a> 
						<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a> 
					<!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW -->
						<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>	
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ELSE -->
						{ICON_MOVE_UP_DISABLED}
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ENDIF -->
					<a href="{modules.U_EDIT}">{ICON_EDIT}</a> 
					<a href="{modules.U_DELETE}">{ICON_DELETE}</a>
				</td>
			</tr>
		<!-- END modules -->
	
	<!-- ENDIF -->--%>
<div class="clearfix">
    &nbsp;</div>
<fieldset class="quick flowEnd">
    <input type="hidden" name="action" value="quickadd" />
    <asp:DropDownList runat="server" ID="sQuickInstall" />
    <asp:Button runat="server" ID="bQuickInstall" CssClass="button2" Text="<%$ Lang:ADD_MODULE%>" />
</fieldset>
<%--<form id="quick" method="post" action="{U_ACTION}">
    <fieldset class="quick" style="float: <%= S_CONTENT_FLOW_END %>;">
        <input type="hidden" name="action" value="quickadd" />
        <select name="quick_install">
            <%= S_INSTALL_OPTIONS %>
        </select>
        <input class="button2" name="quickadd" type="submit" value="<%= L_ADD_MODULE %>" />
    </fieldset>
    </form>--%>
<fieldset class="quick flowBegin">
    <asp:TextBox runat="server" ID="tAddModuleLangName" MaxLength="255" />
    <asp:Button runat="server" ID="bAddModule" CssClass="button2" Text="<%$ Lang:CREATE_MODULE%>" />
</fieldset>
<%--<form id="module" method="post" action="{U_ACTION}">
    <fieldset class="quick" style="float: <%= S_CONTENT_FLOW_BEGIN %>;">
        <input type="hidden" name="action" value="add" />
        <input type="hidden" name="module_parent_id" value="{PARENT_ID}" />
        <input type="text" name="module_langname" maxlength="255" />
        <input class="button2" name="addmodule" type="submit" value="<%= L_CREATE_MODULE %>" />
    </fieldset>
    </form>--%>
<div class="clearfix">
    &nbsp;</div>
<br style="clear: both;" />
<fieldset class="quick">
    <asp:Literal ID="Literal4" runat="server" Text="<%$ Lang:SELECT_MODULE%>" />:
    <asp:DropDownList runat="server" ID="sSelectModule" AutoPostBack="true" />
    <asp:Button runat="server" ID="bSelectModule" CssClass="button2" Text="<%$ Lang:GO%>" />
</fieldset>
<%--<form id="mselect" method="post" action="{U_SEL_ACTION}">
    <fieldset class="quick">
        <%= L_SELECT_MODULE %>:
        <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">
            {MODULE_BOX}
        </select>
        <input class="button2" type="submit" value="<%= L_GO %>" />
    </fieldset>
    </form>--%>